package com.partsoft.dits.dsm;

import com.partsoft.dits.DescriptorDepends;
import com.partsoft.dits.DescriptorManager;
import com.partsoft.dits.DescriptorRegistry;

/**
 * 监听配置接口
 */
public interface DataSourceMonitorManager extends DescriptorManager<DataSourceMonitorDescriptor>,
		DescriptorRegistry<DataSourceMonitorDescriptor>, 
		DescriptorDepends<DataSourceMonitorDescriptor> {

	/**
	 * 添加监听
	 * 
	 * @param info
	 */
	void addMonitor(DataSourceMonitorDescriptor info);

	/**
	 * 移除监听器
	 * 
	 * @param dsName
	 *            数据源名称
	 */
	void removeMonitor(String dsName);

	/**
	 * 数据源是否已监听
	 * 
	 * @param dsName
	 * @return
	 */
	boolean isMonitored(String dsName);

}
